home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 December
/
PCWorld_2007-12_cd.bin
/
domacnost a kancelar
/
autoit
/
autoit-v3-setup.exe
/
Examples
/
Helpfile
/
TraySetState.au3
< prev
next >
Wrap
Text File
|
2007-09-08
|
576b
|
34 lines
#Include <Constants.au3>
#NoTrayIcon
Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown.
$exititem = TrayCreateItem("Exit")
TraySetIcon("warning")
TraySetToolTip("SOS")
TraySetState() ; Show the tray icon
$toggle = 0
While 1
$msg = TrayGetMsg()
Select
Case $msg = 0
Sleep(1000)
If $toggle = 0 Then
TraySetState() ; Show the tray icon
$toggle = 1
Else
TraySetState(2) ; Hide the tray icon
$toggle = 0
EndIF
Case $msg = $exititem
ExitLoop
EndSelect
WEnd
Exit